//
//  BankBillViewController.swift
//  KaMengApplication
//
//  Created by DUONIU_MAC on 2018/11/7.
//  Copyright © 2018年 DUONIU_MAC. All rights reserved.
//

import UIKit
import XLPagerTabStrip

class BankBillViewController: KMViewController,IndicatorInfoProvider {
    
    fileprivate var placeholder = ""
    
    var itemInfo:IndicatorInfo = ""
    
    init(placeholder:String) {
        super.init(nibName: nil, bundle: nil)
        
        self.placeholder = placeholder
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()

        addSubView()

    }

    //MARK: 添加子视图
    fileprivate func addSubView() {
        
        let bankBillView =  BankBillView.init(frame: self.view.bounds)
        bankBillView.accountView.placeholder = placeholder
        self.view.addSubview(bankBillView)
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }
    
    func indicatorInfo(for pagerTabStripController: PagerTabStripViewController) -> IndicatorInfo {
        
        return itemInfo
        
    }

}
